package com.lagou.orders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lagou.domain.Orders;
import com.lagou.vo.OrdersVO;

import java.util.List;

public interface OrdersMapper extends BaseMapper<Orders> {

    /**
     * 根据id查询订单信息
     * @param id
     * @return
     */
    Orders getOrdersById(Integer id);

    /**
     * 分页查询订单信息
     * @param ordersVO
     * @return
     */
    List<Orders> getOrdersByPage(OrdersVO ordersVO);

    /**
     * 根据订单id查询关联的商品id
     * @param id
     * @return
     */
    List<Integer> getGoodsIdsByOrderId(Integer id);
}
